package org.example.fancystudy.SynchronizedDemo;

import org.openjdk.jol.info.ClassLayout;

/**
 * @author chaigq
 * @version 1.0
 * @date 2023/2/22 17:49
 */
public class SynchronizedUpDemo {
    public static void main(String[] args) {
        Object o = new Object();
        System.out.println("10进制hash码："+o.hashCode());
        System.out.println("16进制hash码："+Integer.toHexString(o.hashCode()));
        System.out.println("2进制hash码："+Integer.toBinaryString(o.hashCode()));
        System.out.println(ClassLayout.parseInstance(o).toPrintable());
    }
}
